"""
-*- coding:utf-8 -*-
__project__ = 'le-bo16'
__file_name__ = 'rickey'
__author__ = 'RickeyTing'
__time__ = '2020/10/27 19:36'
__product_name = PyCharm
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃        ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""

# i 行数
# J 列数

i = 1
while i <= 7:
    j = 1
    while j <= i:
        print("*", end="")
        j += 1
    print()
    i += 1

for i in range(7,0,-1):
    for j in range(1,i-1,):
        print("*", end="")
        j += 1
    print()
    i += 1


# for 循环

for i in range(1,10):
    for j in range(1, i+1):
        print('%d x %d = %2d' % (j,i,i*j),end = '   ')
    print(' ')


print('\n')



# while 循环

i = 9

while i >= 1:
    j = i
    while j >= 1:
        print("%d x %d = %2d " % (i,j,(i*j)),end = '  ')
        j -= 1
    print()
    i -= 1








